package exception;

public class FinnallyDemo {
    public static void main(String[] args) {
        System.out.println("main方法开始");
        try {
            String str = "abc";
            System.out.println(str.length());
            return;
        }catch (Exception e){
            System.out.println("出错了");
        }finally {
            System.out.println("finally语句块执行了");
        }
        System.out.println("main方法结束");
    }
}
